package cmpe451.group7.ourcity.dao;

import java.util.List;

import cmpe451.group7.ourcity.entity.Multimedia;
import cmpe451.group7.ourcity.entity.MultimediaType;
import cmpe451.group7.ourcity.entity.Place;
import cmpe451.group7.ourcity.entity.User;

public interface MultimediaDAO extends GenericDAO<Multimedia> {

	/**
	 * Adds the image to the database
	 * 
	 * @param owner
	 * @param data
	 *            byte array form of the image
	 * @param mimeType
	 * @param type
	 * @return
	 */
	Multimedia createMultimedia(User owner, byte[] data, String mimeType,
			MultimediaType type);

	/**
	 * Find all images of a place
	 * 
	 * @param place
	 * @return
	 */
	List<Multimedia> findPlaceMultimedia(Place place);

	/**
	 * Returns the id's of the images of the given place
	 * 
	 * @param place
	 * @return
	 */
	List<Long> findPlaceMultimediaId(Place place);

}
